<jsp:directive.page import="com.mdoffice.vo.PatientListVo" />
<%@ page import="java.util.*"%>
Patient List
<%
	List l = (List) session.getAttribute("allpatientlist");
%>
<html>
<body bgcolor="cyan">
	<table border="cyan">
		<tr>
			<th>ipapatientID</th>
			<th>PatientName</th>
			<th>PatientAddress</th>
			<th>Diesease</th>
			<th>Allocated Drugs</th>
		</tr>
		<%
			Iterator i = l.iterator();
			while (i.hasNext()) {
				PatientListVo pvo = (PatientListVo) i.next();
				out.println("<TR>");
				out.println("<TD>" + " <a href=" + pvo.getPatientID() + "</TD>");
				out.println("<TD>" + pvo.getPname() + "</TD>");
				out.println("<TD>" + pvo.getPaddr() + "</TD>");
				out.println("<TD>" + pvo.getDiesease() + "</TD>");
				out.println("<TD>" + pvo.getDrugs() + "</TD>");
				out.println("</TR>");
			}
		%>
	</table>
	<br>
	<br>
	<br>
	<a href="Home.jsp">Home</a>
	<br>
	<br>
	<a href="PatientInformation.html">Add New Patient</a>
</body>
</html>